const beseURL = 'http://localhost:3000'
export const toList = (option) => {
	return new Promise((resolve, reject) => {
			uni.request({
				url: beseURL + option.url,
				method: option.method || 'GET',
				data: option.data || {},
				success: (res) => {
					
					resolve(res)
				},
				fail: (err) => {
					uni.showToast({
						title: '数据请求失败'
					})
					reject(err)
				}
			})
		})
}
